﻿<table cellspacing='0' id='table<%= h(table.id) %>' summary='<%= h(table.summary) %>'>
	<caption>
		<span>
			<%= link_to table.tableName, {:action => 'edit_table', :id => table}, :class => "plus", :title => "edit" %>
		</span>
		<%= link_to '×', {:action => 'delete_table', :id => table}, :class => "x", :title => "delete" %>
	</caption>
	<colgroup>
		<col id='name' />
		<col id='delete' />
		<col id='changeBtn' />
		<col id='deleteBtn' />
	</colgroup>
	<tfoot>
		<tr>
			<th>
				<a href=''
				onclick='subtractRow(); return false;'
				title='subtract a row'></a>
			</th>
		</tr>
		<tr>
			<th>
				<a href=''
				onclick='addRow(); return false;'
				title='add a row'></a>
			</th>
			<th>
				<%= link_to '+', :action => 'add_domain', :id => table %>
			</th>
		</tr>
	</tfoot>
	<tbody >		
		<%= render(:partial => "domain", :collection => table.domains) %>
	</tbody>		
</table>				